# str int float bool
for i in "我爱中国":
    print(i)

# range(start,stop,step)
# start 起始值默认0
# stop 终止值
# step 步长 默认1 正数和负数用来控制方向
# for i in range(10):  # 10 终止值[0,10)
#     print(i)
# for i in range(0, 10):
#     print(i)
# for i in range(0, 10, 1):
#     print(i)
# for i in range(0, 10, 2):
#     print(i)

# 倒着打印
# for i in range(10, -1, -1):
#     print(i)

# 乘法口诀表
# for i in range(1,10):
#     for j in range(1,i+1):
#         print("{}*{}={}\t".format(i,j,i*j),end="")
#     print("")

# 求质数 2-100质数
for i in range(2,101):
    # 41
    # 41 % 2
    # 41 % 3
    # 41 % 4
    # 41 % 48
    flag = True
    for j in range(2,i):
        if i % j == 0:
            flag = False
            break
    if flag:
        print(i)


